import com.lmf.eduservice.entity.vo.ChapterVo;
import com.lmf.eduservice.entity.vo.VideoVo;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 测试将一个数组直接赋给另外一个数组，两者可以随便赋值，都会自动扩容
 */
public class Hello {
    public static void main(String[] args) {

        int[] a = {1,2,3,4,5555};

        int[] b = new int[3];

        b = a;

        System.out.println(Arrays.toString(a));
        System.out.println(Arrays.toString(b));
    }

    @Test
    public void test1(){
        VideoVo videoVo = new VideoVo();
        videoVo.setId("1");

        List list = new ArrayList();
        list.add(videoVo);
        System.out.println(list);

        videoVo.setId("2");
        System.out.println(list);
//        ChapterVo chapterVo = new ChapterVo();
//        chapterVo.setId("2");
    }
}
